package org.example.auth.feign;

import org.example.auth.contract.response.UserResponse;
import org.example.misc.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "auth-server")
@RequestMapping("/auth/user")
public interface UserFeign {

    @GetMapping("/getUserById")
    Result<UserResponse> getUserById(@RequestParam Long id);
}
